package com.hehe.conversion.hehemiddleware.common;

import java.util.HashMap;
import java.util.Map;

public class IdcardFieldMapper {
    private static final Map<String, String> fieldMappings;

    static {
        fieldMappings = new HashMap<>();
        fieldMappings.put("image_angle", "orialPictureTheDefonAngle");
        fieldMappings.put("type", "identType");
        fieldMappings.put("rotated_image_width", "revolveLaterTheImgWdDege");
        fieldMappings.put("type_description", "identTypeChinDsc");
        fieldMappings.put("rotated_image_height","revolveLaterTheImgHght");
        fieldMappings.put("is_gray","blackAndWhiteCopiesFlag");
        fieldMappings.put("address","entRegistAddr");
        fieldMappings.put("id_number","idtyCerateNo");
        fieldMappings.put("birth","birthday");
        fieldMappings.put("name","nam");
        fieldMappings.put("sex","gend");
        fieldMappings.put("validate_date","efctTerm");
        fieldMappings.put("nationality","race");
        fieldMappings.put("issue_authority","isueOrg");
    }

    public static String mapField(String rightField) {
        return fieldMappings.get(rightField);
    }
}
